import java.io.FileOutputStream;
import java.io.IOException;

public class Test03 {
    public static void main(String[] args) throws IOException {
        FileOutputStream fos=new FileOutputStream("myio\\a.txt",true);
        String str1="aiqinhai";
        byte[] bytes1=str1.getBytes();
        fos.write(bytes1);
        String str3="\r\n";
        byte[] bytes3=str3.getBytes();
        fos.write(bytes3);
        String str2="666";
        byte[] bytes2=str2.getBytes();
        fos.write(bytes2);


        fos.close();
    }
}
